package com.sumainfor.wx.tenant.service;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.PageUtils;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.wx.tenant.dao.TctenTenantEvaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 查询租客信息
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-05 18:47
 **/
@Service
public class TctenTenantEvaService implements Serializable {

   @Autowired
    TctenTenantEvaMapper tctenTenantEvaMapper;

   /**
   * <p>
   * 查询租客手机号
   * </p>
   *
   * @author: zhoucong
   * @since:
   */
   public JsonResult getTenantTenPhone(Map<String,Object> params) {
    JsonResult result = new JsonResult();
    return result.put(tctenTenantEvaMapper.getTenantTenPhone(params));
   }

   /**
   * <p>
   * 获取租客信息
   * </p>
   *
   * @author: zhoucong
   * @since:
   */
   public JsonResult getTenantList(Map<String,Object> params){
       JsonResult result = new JsonResult();
       return result.put(tctenTenantEvaMapper.getTenantList(params));
   }

}
